using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
using System.Data;
using System.Configuration;
using Bussiness.Config;     
using Bussiness.Entity;
namespace Bussiness.ManagerBase
{
                

     public abstract class Aspnet_RolesManagerBase
    {
        public Aspnet_RolesManagerBase()
        {
            Adapter.ConnectionString =  ConnectionConfig.ConnectionString;            
        }
                    
 
        /// <summary>
        /// Them moi du lieu
        /// </summary>
        /// <returns>Aspnet_RolesEntity</returns>
        public Aspnet_RolesEntity Insert(Aspnet_RolesEntity obj)
        { 
            return (Aspnet_RolesEntity) Adapter.Insert(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo khoa chinh cua object
        /// </summary>
        /// <returns>Aspnet_RolesEntity</returns>
        public Aspnet_RolesEntity Update(Aspnet_RolesEntity obj)
        { 
            return (Aspnet_RolesEntity)Adapter.Update(obj);             
        }
 
 
        public Aspnet_RolesEntity Delete(Aspnet_RolesEntity obj)
        { 
            return (Aspnet_RolesEntity)Adapter.Delete(obj);             
        }
 


        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ApplicationId duoc set trong object
        /// </summary>
        /// <returns>Aspnet_RolesEntity</returns>
        public Aspnet_RolesEntity DeleteByApplicationId (Aspnet_RolesEntity obj)
        { 
            return (Aspnet_RolesEntity)Adapter.DeleteByField(obj,"ApplicationId");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ApplicationId 
        /// </summary>
        /// <returns>Aspnet_RolesEntity</returns>
        public Aspnet_RolesEntity DeleteByApplicationId (Guid ApplicationId )
        { 
            Aspnet_RolesEntity obj = new Aspnet_RolesEntity();
            obj.ApplicationId = ApplicationId;  
            return (Aspnet_RolesEntity)Adapter.DeleteByField(obj,"ApplicationId");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Description duoc set trong object
        /// </summary>
        /// <returns>Aspnet_RolesEntity</returns>
        public Aspnet_RolesEntity DeleteByDescription (Aspnet_RolesEntity obj)
        { 
            return (Aspnet_RolesEntity)Adapter.DeleteByField(obj,"Description");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Description 
        /// </summary>
        /// <returns>Aspnet_RolesEntity</returns>
        public Aspnet_RolesEntity DeleteByDescription (string Description )
        { 
            Aspnet_RolesEntity obj = new Aspnet_RolesEntity();
            obj.Description = Description;  
            return (Aspnet_RolesEntity)Adapter.DeleteByField(obj,"Description");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien LoweredRoleName duoc set trong object
        /// </summary>
        /// <returns>Aspnet_RolesEntity</returns>
        public Aspnet_RolesEntity DeleteByLoweredRoleName (Aspnet_RolesEntity obj)
        { 
            return (Aspnet_RolesEntity)Adapter.DeleteByField(obj,"LoweredRoleName");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien LoweredRoleName 
        /// </summary>
        /// <returns>Aspnet_RolesEntity</returns>
        public Aspnet_RolesEntity DeleteByLoweredRoleName (string LoweredRoleName )
        { 
            Aspnet_RolesEntity obj = new Aspnet_RolesEntity();
            obj.LoweredRoleName = LoweredRoleName;  
            return (Aspnet_RolesEntity)Adapter.DeleteByField(obj,"LoweredRoleName");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien RoleId duoc set trong object
        /// </summary>
        /// <returns>Aspnet_RolesEntity</returns>
        public Aspnet_RolesEntity DeleteByRoleId (Aspnet_RolesEntity obj)
        { 
            return (Aspnet_RolesEntity)Adapter.DeleteByField(obj,"RoleId");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien RoleId 
        /// </summary>
        /// <returns>Aspnet_RolesEntity</returns>
        public Aspnet_RolesEntity DeleteByRoleId (Guid RoleId )
        { 
            Aspnet_RolesEntity obj = new Aspnet_RolesEntity();
            obj.RoleId = RoleId;  
            return (Aspnet_RolesEntity)Adapter.DeleteByField(obj,"RoleId");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien RoleName duoc set trong object
        /// </summary>
        /// <returns>Aspnet_RolesEntity</returns>
        public Aspnet_RolesEntity DeleteByRoleName (Aspnet_RolesEntity obj)
        { 
            return (Aspnet_RolesEntity)Adapter.DeleteByField(obj,"RoleName");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien RoleName 
        /// </summary>
        /// <returns>Aspnet_RolesEntity</returns>
        public Aspnet_RolesEntity DeleteByRoleName (string RoleName )
        { 
            Aspnet_RolesEntity obj = new Aspnet_RolesEntity();
            obj.RoleName = RoleName;  
            return (Aspnet_RolesEntity)Adapter.DeleteByField(obj,"RoleName");
        }

 
        /// <summary>
        /// Lay du lieu theo khoa chinh object
        /// </summary>
        /// <returns></returns>
        public Aspnet_RolesEntity Select(Aspnet_RolesEntity obj)
        { 
            return (Aspnet_RolesEntity) Adapter.Select(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(Aspnet_RolesEntity obj)
        { 
            return  Adapter.SelectWithCondition(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(Aspnet_RolesEntity obj,SelectOptions option)
        {             
            return  Adapter.SelectWithCondition(obj,option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll()
        { 
            return Adapter.SelectAll(new Aspnet_RolesEntity());             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll(SelectOptions option)
        { 
            return Adapter.SelectAll(new Aspnet_RolesEntity(),option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<Aspnet_RolesEntity> SelectAllLST()
        { 
            return  (List<Aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new Aspnet_RolesEntity()),new Aspnet_RolesEntity());           
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<Aspnet_RolesEntity> SelectAllLST(SelectOptions option)
        { 
            return (List<Aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new Aspnet_RolesEntity(),option),new Aspnet_RolesEntity());             
        }
 

        /// <summary>
        /// Lay du lieu theo cac dieu kien ApplicationId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByApplicationId (Aspnet_RolesEntity obj)
        { 
            return Adapter.SelectByField(obj,"ApplicationId");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ApplicationId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByApplicationId (Aspnet_RolesEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"ApplicationId",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ApplicationId duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_RolesEntity></returns>
        public List<Aspnet_RolesEntity> SelectByApplicationIdLST (Aspnet_RolesEntity obj)
        { 
            return  (List<Aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ApplicationId"),new Aspnet_RolesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ApplicationId duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_RolesEntity></returns>
        public List<Aspnet_RolesEntity> SelectByApplicationIdLST (Aspnet_RolesEntity obj,SelectOptions option)
        { 
            return  (List<Aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"ApplicationId",option),new Aspnet_RolesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ApplicationId 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByApplicationId (Guid ApplicationId )
        { 
            Aspnet_RolesEntity obj = new Aspnet_RolesEntity();
            obj.ApplicationId = ApplicationId;  
            return Adapter.SelectByField(obj,"ApplicationId");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ApplicationId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByApplicationId (Guid ApplicationId, SelectOptions option)
        { 
            Aspnet_RolesEntity obj = new Aspnet_RolesEntity();
            obj.ApplicationId = ApplicationId;  
            return Adapter.SelectByField(obj,"ApplicationId",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ApplicationId 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Aspnet_RolesEntity> SelectByApplicationIdLST (Guid ApplicationId )
        { 
            Aspnet_RolesEntity obj = new Aspnet_RolesEntity();
            obj.ApplicationId = ApplicationId;  
            return  (List<Aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ApplicationId"),new Aspnet_RolesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ApplicationId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Aspnet_RolesEntity> SelectByApplicationIdLST (Guid ApplicationId, SelectOptions option)
        { 
            Aspnet_RolesEntity obj = new Aspnet_RolesEntity();
            obj.ApplicationId = ApplicationId;  
            return  (List<Aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ApplicationId",option),new Aspnet_RolesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Description duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByDescription (Aspnet_RolesEntity obj)
        { 
            return Adapter.SelectByField(obj,"Description");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Description duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByDescription (Aspnet_RolesEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"Description",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Description duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_RolesEntity></returns>
        public List<Aspnet_RolesEntity> SelectByDescriptionLST (Aspnet_RolesEntity obj)
        { 
            return  (List<Aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Description"),new Aspnet_RolesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Description duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_RolesEntity></returns>
        public List<Aspnet_RolesEntity> SelectByDescriptionLST (Aspnet_RolesEntity obj,SelectOptions option)
        { 
            return  (List<Aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"Description",option),new Aspnet_RolesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Description 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByDescription (string Description )
        { 
            Aspnet_RolesEntity obj = new Aspnet_RolesEntity();
            obj.Description = Description;  
            return Adapter.SelectByField(obj,"Description");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Description duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByDescription (string Description, SelectOptions option)
        { 
            Aspnet_RolesEntity obj = new Aspnet_RolesEntity();
            obj.Description = Description;  
            return Adapter.SelectByField(obj,"Description",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Description 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Aspnet_RolesEntity> SelectByDescriptionLST (string Description )
        { 
            Aspnet_RolesEntity obj = new Aspnet_RolesEntity();
            obj.Description = Description;  
            return  (List<Aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Description"),new Aspnet_RolesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Description duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Aspnet_RolesEntity> SelectByDescriptionLST (string Description, SelectOptions option)
        { 
            Aspnet_RolesEntity obj = new Aspnet_RolesEntity();
            obj.Description = Description;  
            return  (List<Aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Description",option),new Aspnet_RolesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LoweredRoleName duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLoweredRoleName (Aspnet_RolesEntity obj)
        { 
            return Adapter.SelectByField(obj,"LoweredRoleName");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LoweredRoleName duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLoweredRoleName (Aspnet_RolesEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"LoweredRoleName",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LoweredRoleName duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_RolesEntity></returns>
        public List<Aspnet_RolesEntity> SelectByLoweredRoleNameLST (Aspnet_RolesEntity obj)
        { 
            return  (List<Aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"LoweredRoleName"),new Aspnet_RolesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LoweredRoleName duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_RolesEntity></returns>
        public List<Aspnet_RolesEntity> SelectByLoweredRoleNameLST (Aspnet_RolesEntity obj,SelectOptions option)
        { 
            return  (List<Aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"LoweredRoleName",option),new Aspnet_RolesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LoweredRoleName 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLoweredRoleName (string LoweredRoleName )
        { 
            Aspnet_RolesEntity obj = new Aspnet_RolesEntity();
            obj.LoweredRoleName = LoweredRoleName;  
            return Adapter.SelectByField(obj,"LoweredRoleName");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LoweredRoleName duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLoweredRoleName (string LoweredRoleName, SelectOptions option)
        { 
            Aspnet_RolesEntity obj = new Aspnet_RolesEntity();
            obj.LoweredRoleName = LoweredRoleName;  
            return Adapter.SelectByField(obj,"LoweredRoleName",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LoweredRoleName 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Aspnet_RolesEntity> SelectByLoweredRoleNameLST (string LoweredRoleName )
        { 
            Aspnet_RolesEntity obj = new Aspnet_RolesEntity();
            obj.LoweredRoleName = LoweredRoleName;  
            return  (List<Aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"LoweredRoleName"),new Aspnet_RolesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LoweredRoleName duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Aspnet_RolesEntity> SelectByLoweredRoleNameLST (string LoweredRoleName, SelectOptions option)
        { 
            Aspnet_RolesEntity obj = new Aspnet_RolesEntity();
            obj.LoweredRoleName = LoweredRoleName;  
            return  (List<Aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"LoweredRoleName",option),new Aspnet_RolesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RoleId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByRoleId (Aspnet_RolesEntity obj)
        { 
            return Adapter.SelectByField(obj,"RoleId");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RoleId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByRoleId (Aspnet_RolesEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"RoleId",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RoleId duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_RolesEntity></returns>
        public List<Aspnet_RolesEntity> SelectByRoleIdLST (Aspnet_RolesEntity obj)
        { 
            return  (List<Aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"RoleId"),new Aspnet_RolesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RoleId duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_RolesEntity></returns>
        public List<Aspnet_RolesEntity> SelectByRoleIdLST (Aspnet_RolesEntity obj,SelectOptions option)
        { 
            return  (List<Aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"RoleId",option),new Aspnet_RolesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RoleId 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByRoleId (Guid RoleId )
        { 
            Aspnet_RolesEntity obj = new Aspnet_RolesEntity();
            obj.RoleId = RoleId;  
            return Adapter.SelectByField(obj,"RoleId");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RoleId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByRoleId (Guid RoleId, SelectOptions option)
        { 
            Aspnet_RolesEntity obj = new Aspnet_RolesEntity();
            obj.RoleId = RoleId;  
            return Adapter.SelectByField(obj,"RoleId",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RoleId 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Aspnet_RolesEntity> SelectByRoleIdLST (Guid RoleId )
        { 
            Aspnet_RolesEntity obj = new Aspnet_RolesEntity();
            obj.RoleId = RoleId;  
            return  (List<Aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"RoleId"),new Aspnet_RolesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RoleId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Aspnet_RolesEntity> SelectByRoleIdLST (Guid RoleId, SelectOptions option)
        { 
            Aspnet_RolesEntity obj = new Aspnet_RolesEntity();
            obj.RoleId = RoleId;  
            return  (List<Aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"RoleId",option),new Aspnet_RolesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RoleName duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByRoleName (Aspnet_RolesEntity obj)
        { 
            return Adapter.SelectByField(obj,"RoleName");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RoleName duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByRoleName (Aspnet_RolesEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"RoleName",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RoleName duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_RolesEntity></returns>
        public List<Aspnet_RolesEntity> SelectByRoleNameLST (Aspnet_RolesEntity obj)
        { 
            return  (List<Aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"RoleName"),new Aspnet_RolesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RoleName duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_RolesEntity></returns>
        public List<Aspnet_RolesEntity> SelectByRoleNameLST (Aspnet_RolesEntity obj,SelectOptions option)
        { 
            return  (List<Aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"RoleName",option),new Aspnet_RolesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RoleName 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByRoleName (string RoleName )
        { 
            Aspnet_RolesEntity obj = new Aspnet_RolesEntity();
            obj.RoleName = RoleName;  
            return Adapter.SelectByField(obj,"RoleName");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RoleName duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByRoleName (string RoleName, SelectOptions option)
        { 
            Aspnet_RolesEntity obj = new Aspnet_RolesEntity();
            obj.RoleName = RoleName;  
            return Adapter.SelectByField(obj,"RoleName",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RoleName 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Aspnet_RolesEntity> SelectByRoleNameLST (string RoleName )
        { 
            Aspnet_RolesEntity obj = new Aspnet_RolesEntity();
            obj.RoleName = RoleName;  
            return  (List<Aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"RoleName"),new Aspnet_RolesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien RoleName duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Aspnet_RolesEntity> SelectByRoleNameLST (string RoleName, SelectOptions option)
        { 
            Aspnet_RolesEntity obj = new Aspnet_RolesEntity();
            obj.RoleName = RoleName;  
            return  (List<Aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"RoleName",option),new Aspnet_RolesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_RolesEntity></returns>
        public List<Aspnet_RolesEntity> SelectWithConditionLST (Aspnet_RolesEntity obj)
        { 
            return  (List<Aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj),new Aspnet_RolesEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<Aspnet_RolesEntity></returns>
        public List<Aspnet_RolesEntity> SelectWithConditionLST (Aspnet_RolesEntity obj,SelectOptions option)
        { 
            return  (List<Aspnet_RolesEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj,option),new Aspnet_RolesEntity());
        }

}
}
